package com.ruoyi.pingjiao.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.Type;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程管理对象 course
 * 
 * @author 胡浩鹏
 * @date 2022-10-18
 */
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程id */
    private Long courseId;

    /** 专业id */
    private Long majorId;

    /** 课程号 */
    @Excel(name = "课程号")
    private String courseNo;

    /** 课程名 */
    @Excel(name = "课程名")
    private String courseName;

    /** 课程类型 */
    @Excel(name = "课程类型", readConverterExp = "1=普通课程,2=实训课程,3=军训课程")
    private String courseType;

    /** 学院 */
    @Excel(name = "学院")
    private Long deptId;

    /** 状态 */
    private String status;

    /** 是否删除 */
    private String delFlag;

    @Excels({
            @Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
            @Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT)
    })
    private SysDept dept;

    private EvaluationPaper paper;

    @Excel(name = "平时成绩占比")
    private Long pingshiPercent;

    /** 期末成绩占比 */
    @Excel(name = "期末成绩占比")
    private Long qimoPercent;

    private String stuTime;

    private String stuScore;

    private String majorName;

    public Course() {
    }

    public Long getMajorId() {
        return majorId;
    }

    public void setMajorId(Long majorId) {
        this.majorId = majorId;
    }

    public void setCourseId(Long courseId)
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setCourseNo(String courseNo) 
    {
        this.courseNo = courseNo;
    }

    public String getCourseNo() 
    {
        return courseNo;
    }
    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }
    public void setCourseType(String courseType) 
    {
        this.courseType = courseType;
    }

    public String getCourseType() 
    {
        return courseType;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    public EvaluationPaper getPaper() {
        return paper;
    }

    public void setPaper(EvaluationPaper paper) {
        this.paper = paper;
    }

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("courseId", getCourseId())
            .append("majorId", getMajorId())
            .append("courseNo", getCourseNo())
            .append("courseName", getCourseName())
            .append("courseType", getCourseType())
            .append("deptId", getDeptId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public Long getPingshiPercent() {
        return pingshiPercent;
    }

    public void setPingshiPercent(Long pingshiPercent) {
        this.pingshiPercent = pingshiPercent;
    }

    public Long getQimoPercent() {
        return qimoPercent;
    }

    public void setQimoPercent(Long qimoPercent) {
        this.qimoPercent = qimoPercent;
    }

    public String getStuScore() {
        return stuScore;
    }

    public void setStuScore(String stuScore) {
        this.stuScore = stuScore;
    }

    public String getStuTime() {
        return stuTime;
    }

    public void setStuTime(String stuTime) {
        this.stuTime = stuTime;
    }
}
